package edu.stu.cs.software.family.merchantservices.web.spring.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import edu.stu.cs.software.family.base.web.spring.controller.GenericController;
import edu.stu.cs.software.family.merchantservices.domain.Merchant;
import edu.stu.cs.software.family.merchantservices.service.MerchantManager;

/**
 * 
 * @author cxk
 * MerchantController expand of base class GenericController
 */

@Controller
@RequestMapping("/merchant")
public class MerchantController extends GenericController<Merchant, Long, MerchantManager> {

	MerchantManager merchantManager;
	/**
	 * 
	 * @return 
	 */
	@RequestMapping("/index")
	public String index() {
		return "merchant/index";
	}
	public void setMerchantManager(MerchantManager merchantManager) {
		this.merchantManager = merchantManager;
		this.manager=this.merchantManager;
	}
	
}